package com.ma.old;

import java.net.SocketTimeoutException;
import java.util.Locale;

public class HuiWen {
    public static void main(String[] args) {
        String s = "A man, a plan, a canal: Panama";
        String s1 = s.replaceAll("[^A-Za-z0-9]", "").toLowerCase();
        System.out.println((s1));
        for (int i = 0; i < s1.length() / 2; i++) {
            if (s1.charAt(i) != s1.charAt(s1.length() - 1 - i)) {
                System.out.println("false");
            }
        }
        System.out.println("t");
    }
}
